/**
 * 打印控件方法调用
 */

/**
 * <input name=Button onClick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开>
<input name=Button onClick=document.all.WebBrowser.ExecWB(2,1) type=button value=关闭所有>
<input name=Button onClick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为> 
<input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印>
<input name=Button onClick=document.all.WebBrowser.ExecWB(6,6) type=button value=直接打印>
<input name=Button onClick=document.all.WebBrowser.ExecWB(7,1) type=button value=打印预览>
<input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置>
<input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性>
<input name=Button onClick=document.all.WebBrowser.ExecWB(17,1) type=button value=全选>
<input name=Button onClick=document.all.WebBrowser.ExecWB(22,1) type=button value=刷新>
<input name=Button onClick=document.all.WebBrowser.ExecWB(45,1) type=button value=关闭>
 * @returns
 */
//打开
function printOpen(v1){
	wb=window[v1];
	delete window[v1];
	wb.execwb(1,1);
}
//关闭所有
function printCloseAll(v1){
	wb=window[v1];
	delete window[v1];
	wb.execwb(2,1);
}
//另存为
function printOthSave(v1){
	wb=window[v1];
	delete window[v1];
	wb.execwb(4,1);
}
//打印
function print(v1){
	wb=window[v1];
	delete window[v1];
	wb.execwb(6,1);
}
//打印预览
function printPreview(v1){
	wb=window[v1];
	delete window[v1];
	wb.execwb(7,1);
}
/**
 *  <OBJECT id=wb height=0 width=0 classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2></OBJECT>
    <INPUT onclick=javascript:printit('wb') type=button value=打印 />
    <INPUT onclick=javascript:printsetup(); type=button value=打印页面设置 />
    <INPUT onclick=javascript:printpreview(); type=button value=打印预览 />
    <INPUT onclick=javascript:window.close(); type=button value=关闭 />
</DIV>
 */

